export const number = /^(-?\d+)(\.\d+)?$/; // 数字
export const decimal = /^([0-9]*|d*.d{1}?d*)$/; //小数
export const letter = /[a-zA-Z]/;
export const letterAndNumber = /^\w+$/;
export const mobilePhone = /^1[3-9]\d{9}$/; // 手机号码
export const email =
  /^([a-zA-Z0-9]+[_|\_|\.]?)*[a-zA-Z0-9]+@([a-zA-Z0-9]+[_|\_|\.]?)*[a-zA-Z0-9]+\.[a-zA-Z]{2,3}$/; // 验证Email地址
export const url =
  /(http|ftp|https):\/\/[\w\-_]+(\.[\w\-_]+)+([\w\-\.,@?^=%&:/~\+#]*[\w\-\@?^=%&/~\+#])?/;
export const noChinese = /^[^\u4e00-\u9fa5]+$/;
export const chinese = /[\u4e00-\u9fa5]/;
export const idCard =
  /^([1-6][1-9]|50)\d{4}(18|19|20)\d{2}((0[1-9])|10|11|12)(([0-2][1-9])|10|20|30|31)\d{3}[0-9Xx]$/; // 身份证
